import request from '@/utils/request'

// 查询通用航空企业基本信息列表
export function listGabusiness(query) {
  return request({
    url: '/baseinfo/gabusiness/list',
    method: 'get',
    params: query
  })
}

// 查询通用航空企业基本信息详细
export function getGabusiness(gabusinessid) {
  return request({
    url: '/baseinfo/gabusiness/' + gabusinessid,
    method: 'get'
  })
}

// 新增通用航空企业基本信息
export function addGabusiness(data) {
  return request({
    url: '/baseinfo/gabusiness',
    method: 'post',
    data: data
  })
}

// 修改通用航空企业基本信息
export function updateGabusiness(data) {
  return request({
    url: '/baseinfo/gabusiness',
    method: 'put',
    data: data
  })
}

// 删除通用航空企业基本信息
export function delGabusiness(gabusinessid) {
  return request({
    url: '/baseinfo/gabusiness/' + gabusinessid,
    method: 'delete'
  })
}
